# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

# `id` int(11) NOT NULL auto_increment comment ‘课件id’,
# `subject` varchar(50) default NULL comment ‘科目’,
# `edtion` varchar(100) default NULL comment ‘教材版本’,
# `grade` varchar(50) default NULL comment ‘年级’,
# `term` varchar(50) default NULL comment ‘上下学期’,
# `chater` varchar(100) default NULL comment ‘章名称’,
# `unit` varchar(100) default NULL comment ‘单元名称’,
# `section` varchar(100) default NULL comment ‘节名称’,
# `sources` varchar(5) default NULL comment ‘课件来源’,
# `title` varchar(200) default NULL comment ‘课件标题’,
# `rootdir` varchar(255) default NULL comment ‘课件物理存储路劲’,
# `uri` varchar(255) default NULL comment ‘下载地址uri’,

import scrapy

class HdItem(scrapy.Item):
    _id=scrapy.Field();
    id=scrapy.Field();
    bookname=scrapy.Field();
    grade=scrapy.Field();
    subject=scrapy.Field();
    version=scrapy.Field();
    year=scrapy.Field();
    sxc=scrapy.Field();
    bookpics=scrapy.Field();

#21世纪教育网试卷题目
class Shiji21Item(scrapy.Item):

    #语文，数学(科目)
    _id=scrapy.Field();
    id=scrapy.Field();
    channel=scrapy.Field();
    #年级
    grade=scrapy.Field();
    #年份
    paperyear=scrapy.Field();
    #题型
    papertype=scrapy.Field();
    #地区
    paperarea=scrapy.Field();
    #问题
    tquestion=scrapy.Field();
    #答案
    tanswer=scrapy.Field();
    #解析
    tjiexi=scrapy.Field();
    #所属试卷
    blpaper=scrapy.Field();

class Shiji21PaperItem(scrapy.Item):
    _id=scrapy.Field();
    id=scrapy.Field();
    papername=scrapy.Field();
    channel = scrapy.Field();
    # 年级
    grade = scrapy.Field();
    # 年份
    paperyear = scrapy.Field();
    # 题型
    papertype = scrapy.Field();
    # 地区
    paperarea = scrapy.Field();

class XueKeWangItem(scrapy.Item):
     id=scrapy.Field();
     xkwid=scrapy.Field();
     subjectid=scrapy.Field();
     gradeid=scrapy.Field();
     paperyear=scrapy.Field();
     papertype=scrapy.Field();
     paperarea=scrapy.Field();
     downurl=scrapy.Field();
     papername=scrapy.Field();


class XuekubaoItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    #题目id
    id=scrapy.Field();
    #科目
    subject=scrapy.Field();
    #教材版本
    edtion=scrapy.Field();
    #年级
    grade=scrapy.Field();
    #上下学期
    term=scrapy.Field();
    #出版社
    edition=scrapy.Field();
    #题目内容
    qcontent=scrapy.Field();
    #题目答案
    qanswer=scrapy.Field();
    #难度
    difficulty=scrapy.Field();
    #题型
    qtype=scrapy.Field();
    #来源
    qsrc=scrapy.Field();
    #考点
    qkaodian=scrapy.Field();
    #章节
    qpark=scrapy.Field();



